package com.AJava1710D.设计模式.观察者模式;

/**
 * 作者: LCG
 * 日期: 2020/6/29 10:51
 * 描述:
 */
public class Test0005 {

    public static void main(String[] args) {

        YeWuLei01 yeWuLei01=new YeWuLei01();

        yeWuLei01.register(new YeWu01Watcher("业务类01"));

        YeWuLei02 yeWuLei02=new YeWuLei02();

        yeWuLei01.register(new YeWu01Watcher("业务类02"));

        yeWuLei01.update();

    }

}
